<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // function fn(){
        //     console.log(arguments);

        //     console.log(arguments[2]);

        //     // let [...arr] = arguments;
        //     let arr = Array.from(arguments)

        //     console.log(arr);
        // }

        // fn(1,2,3,4,5,6);

        
        let fn = (...a)=>{
            // arguments is not defined
            // console.log(arguments);
            console.log(a);
        }

        fn('a','b','c')


    </script>
</body>
</html>